//
//  XHNotificationManager.h
//  XHNotificationManager
//
//  Created by 曾 宪华 on 13-12-10.
//  Copyright (c) 2013年 曾宪华 开发团队(http://iyilunba.com ) 本人QQ:543413507. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, XHNotificationManagerType) {
    kXHAPNSNotification = 0,
    kXHLocalNotification
};

typedef void(^SendTokenToServerBlock)(id json, NSError *error);
typedef void(^AlertViewDoneCompleted)(NSDictionary *userInfo);

@interface XHNotificationManager : NSObject
// 解析点击push按钮
+ (void)showAlertMessageForLaunchOptionsDictionary:(NSDictionary *)launchOptions;
// 注册远程push
+ (void)registerTheAppForPushNotifications:(UIApplication *) application WithNotificationType:(XHNotificationManagerType)notificationManagerType;
// 接收远程push
+ (void)showReceivedRemoteNotificationForapplication:(UIApplication *)application UserInfo:(NSDictionary *)userInfo;
// 发送token到服务器
+ (void)sendTokenToServerURLRequest:(NSMutableURLRequest *)request completionBlock:(SendTokenToServerBlock)completed;
// 获取本地缓存token
+ (NSString *)deviceToken;
// 更新本地token
+ (void)setDeviceToken:(NSString*)token;
@end
